<!DOCTYPE html>



  


<html class="theme-next gemini use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT" />










<meta name="description" content="Maven工具一、Maven12345678&#x2F;&#x2F;com.&amp;#123;公司&amp;#125;.业务线.&lt;groupId&gt;com.atguigu.gulimall&lt;&#x2F;groupId&gt;&#x2F;&#x2F;产品线名-模块名   &lt;artifactId&gt;gulimall&lt;&#x2F;artifactId&gt;   &lt;version&gt;0.0.1-SNAPSHOT&lt;&#x2F;version">
<meta property="og:type" content="article">
<meta property="og:title" content="Maven工具">
<meta property="og:url" content="https://gitee.com/htt-sub/htt-sub/2023/10/24/Maven/index.html">
<meta property="og:site_name" content="黄宏涛">
<meta property="og:description" content="Maven工具一、Maven12345678&#x2F;&#x2F;com.&amp;#123;公司&amp;#125;.业务线.&lt;groupId&gt;com.atguigu.gulimall&lt;&#x2F;groupId&gt;&#x2F;&#x2F;产品线名-模块名   &lt;artifactId&gt;gulimall&lt;&#x2F;artifactId&gt;   &lt;version&gt;0.0.1-SNAPSHOT&lt;&#x2F;version">
<meta property="og:locale">
<meta property="og:image" content="https://gitee.com/htt-sub/pic-go/raw/master/images/image-20231023182712757.png">
<meta property="og:image" content="https://gitee.com/htt-sub/pic-go/raw/master/images/image-20231023192322225.png">
<meta property="og:image" content="https://gitee.com/htt-sub/pic-go/raw/master/images/image-20231023192419800.png">
<meta property="og:image" content="https://gitee.com/htt-sub/pic-go/raw/master/images/image-20231023192837289.png">
<meta property="og:image" content="https://gitee.com/htt-sub/pic-go/raw/master/images/image-20231023192940278.png">
<meta property="og:image" content="https://gitee.com/htt-sub/pic-go/raw/master/images/image-20231023193615213.png">
<meta property="article:published_time" content="2023-10-24T02:34:41.000Z">
<meta property="article:modified_time" content="2023-10-24T04:19:49.839Z">
<meta property="article:author" content="黄宏涛">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://gitee.com/htt-sub/pic-go/raw/master/images/image-20231023182712757.png">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '',
    scheme: 'Gemini',
    version: '5.1.4',
    sidebar: {"position":"post","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://gitee.com/htt-sub/htt-sub/2023/10/24/Maven/"/>





  <title>Maven工具 | 黄宏涛</title>
  








<meta name="generator" content="Hexo 6.3.0"></head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-post page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">黄宏涛</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://gitee.com/htt-sub/htt-sub/2023/10/24/Maven/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.png">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="黄宏涛">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Maven工具</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2023-10-24T10:34:41+08:00">
                2023-10-24
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/Maven/" itemprop="url" rel="index">
                    <span itemprop="name">Maven</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h1 id="Maven工具"><a href="#Maven工具" class="headerlink" title="Maven工具"></a>Maven工具</h1><h2 id="一、Maven"><a href="#一、Maven" class="headerlink" title="一、Maven"></a>一、Maven</h2><figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="operator">/</span><span class="operator">/</span>com.&#123;公司&#125;.业务线.</span><br><span class="line"><span class="operator">&lt;</span>groupId<span class="operator">&gt;</span>com.atguigu.gulimall<span class="operator">&lt;</span><span class="operator">/</span>groupId<span class="operator">&gt;</span></span><br><span class="line"><span class="operator">/</span><span class="operator">/</span>产品线名<span class="operator">-</span>模块名</span><br><span class="line">   <span class="operator">&lt;</span>artifactId<span class="operator">&gt;</span>gulimall<span class="operator">&lt;</span><span class="operator">/</span>artifactId<span class="operator">&gt;</span></span><br><span class="line">   <span class="operator">&lt;</span>version<span class="operator">&gt;</span><span class="number">0.0</span><span class="number">.1</span><span class="operator">-</span>SNAPSHOT<span class="operator">&lt;</span><span class="operator">/</span>version<span class="operator">&gt;</span></span><br><span class="line">   <span class="operator">&lt;</span>name<span class="operator">&gt;</span>gulimall<span class="operator">&lt;</span><span class="operator">/</span>name<span class="operator">&gt;</span></span><br><span class="line">   <span class="operator">&lt;</span>description<span class="operator">&gt;</span>聚合服务<span class="operator">&lt;</span><span class="operator">/</span>description<span class="operator">&gt;</span></span><br><span class="line">   <span class="operator">&lt;</span>packaging<span class="operator">&gt;</span>pom<span class="operator">&lt;</span><span class="operator">/</span>packaging<span class="operator">&gt;</span></span><br></pre></td></tr></table></figure>



<h3 id="1-version号"><a href="#1-version号" class="headerlink" title="1. version号"></a>1. version号</h3><p><strong>主版本号</strong>（做了不兼容的API修改）、</p>
<p><strong>次版本号</strong>(向下兼容的功能新增)、</p>
<p><strong>修订号</strong>（修改bug）</p>
<p>如7.4.2</p>
<h3 id="2-packing定义规则"><a href="#2-packing定义规则" class="headerlink" title="2. packing定义规则"></a>2. packing定义规则</h3><p>指示将项目打包为什么类型的文件</p>
<ol>
<li>jar默认值，代表<strong>普通的java项目</strong></li>
<li>war：  代表<strong>java的web项目</strong></li>
<li>pom： 代表<strong>不会打包</strong>，用来做继承的父工程</li>
</ol>
<h3 id="3-构建JavaWeb项目"><a href="#3-构建JavaWeb项目" class="headerlink" title="3. 构建JavaWeb项目"></a>3. 构建JavaWeb项目</h3><p>可以使用插件<strong>JBLJavaToWeb</strong>，项目<strong>右键</strong>，快速生成Javaweb目录</p>
<p>Javaweb项目的pom.xml中  <packaging>war</packaging></p>
<h3 id="4-Maven项目结构说明"><a href="#4-Maven项目结构说明" class="headerlink" title="4. Maven项目结构说明"></a>4. Maven项目结构说明</h3><p><img src="https://gitee.com/htt-sub/pic-go/raw/master/images/image-20231023182712757.png" alt="image-20231023182712757"></p>
<h3 id="5-Maven核心功能依赖和管理构建pom-xml"><a href="#5-Maven核心功能依赖和管理构建pom-xml" class="headerlink" title="5. Maven核心功能依赖和管理构建pom.xml"></a>5. Maven核心功能依赖和管理构建pom.xml</h3><h4 id="1-快速查询jar的插件"><a href="#1-快速查询jar的插件" class="headerlink" title="1. 快速查询jar的插件"></a>1. 快速查询jar的插件</h4><p>快速安装依赖插件<strong>maven-search</strong>,  tools里面有maven-search，可以查询指定jar包</p>
<figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="operator">&lt;</span>dependencies<span class="operator">&gt;</span></span><br><span class="line">		<span class="operator">&lt;</span>dependency<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">&lt;</span>groupId<span class="operator">&gt;</span>com.atguigu.gulimall<span class="operator">&lt;</span><span class="operator">/</span>groupId<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">&lt;</span>artifactId<span class="operator">&gt;</span>gulimall<span class="operator">-</span>common<span class="operator">&lt;</span><span class="operator">/</span>artifactId<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">&lt;</span>version<span class="operator">&gt;</span><span class="number">0.0</span><span class="number">.1</span><span class="operator">-</span>SNAPSHOT<span class="operator">&lt;</span><span class="operator">/</span>version<span class="operator">&gt;</span></span><br><span class="line">		<span class="operator">&lt;</span><span class="operator">/</span>dependency<span class="operator">&gt;</span></span><br><span class="line"><span class="operator">&lt;</span>dependencies<span class="operator">&gt;</span></span><br></pre></td></tr></table></figure>

<h4 id="2-版本号统一管理"><a href="#2-版本号统一管理" class="headerlink" title="2. 版本号统一管理"></a>2. 版本号统一管理</h4><figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">   统一关联版本号</span><br><span class="line">   声明一个变量，在使用位置使用$&#123;jackson.verison&#125;</span><br><span class="line">    <span class="operator">&lt;</span>properties<span class="operator">&gt;</span></span><br><span class="line">		<span class="operator">&lt;</span>common.version<span class="operator">&gt;</span><span class="number">1.8</span><span class="operator">&lt;</span><span class="operator">/</span>common.version<span class="operator">&gt;</span></span><br><span class="line">	<span class="operator">&lt;</span><span class="operator">/</span>properties<span class="operator">&gt;</span> </span><br><span class="line">	</span><br><span class="line"><span class="operator">&lt;</span>dependencies<span class="operator">&gt;</span></span><br><span class="line">		<span class="operator">&lt;</span>dependency<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">&lt;</span>groupId<span class="operator">&gt;</span>com.atguigu.gulimall<span class="operator">&lt;</span><span class="operator">/</span>groupId<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">&lt;</span>artifactId<span class="operator">&gt;</span>gulimall<span class="operator">-</span>common<span class="operator">&lt;</span><span class="operator">/</span>artifactId<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">&lt;</span>version<span class="operator">&gt;</span>$&#123;common.version&#125;<span class="operator">&lt;</span><span class="operator">/</span>version<span class="operator">&gt;</span></span><br><span class="line">		<span class="operator">&lt;</span><span class="operator">/</span>dependency<span class="operator">&gt;</span></span><br><span class="line"><span class="operator">&lt;</span>dependencies<span class="operator">&gt;</span></span><br><span class="line">	</span><br></pre></td></tr></table></figure>

<h4 id="3-可选属性scope"><a href="#3-可选属性scope" class="headerlink" title="3. 可选属性scope"></a>3. 可选属性scope</h4><p>scope：引入依赖的作用域</p>
<ol>
<li>compile(<strong>默认</strong>)：表示可以在main,test，打包，运行都可以使用</li>
<li>test:  表示该依赖只在<strong>test阶段可以使用</strong>，例如 <strong>junit</strong></li>
<li>runtime：表示只在<strong>打包</strong>和<strong>运行</strong>期间有用，在main和test都无效，例如Mysql</li>
<li>provided:  main和test会使用，打包和运行无效，例如：servlet,HttpServlet(运行起来用Tomcat)</li>
</ol>
<h4 id="4-依赖冲突和依赖传递"><a href="#4-依赖冲突和依赖传递" class="headerlink" title="4. 依赖冲突和依赖传递"></a>4. 依赖冲突和依赖传递</h4><p>依赖传递：导入依赖时会导入该依赖的依赖。</p>
<p>依赖冲突：发生<strong>重复依赖</strong>，会终止依赖</p>
<h4 id="5-依赖导入失败场景"><a href="#5-依赖导入失败场景" class="headerlink" title="5. 依赖导入失败场景"></a>5. 依赖导入失败场景</h4><p>清除本地Maven仓库缓存（<strong>lastUpdated文件</strong>），只有存在lastUpdated文件，刷新也不会重新下载。</p>
<p>把下面这个仓库改为本地仓库，并保存为.bat文件，就可以批量删除lastUpdated文件</p>
<figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable">@echo</span> off</span><br><span class="line">rem 这里写你的仓库路径</span><br><span class="line"><span class="keyword">set</span> REPOSITORY_PATH<span class="operator">=</span>D:\repository</span><br><span class="line">rem 正在搜索...</span><br><span class="line"><span class="keyword">for</span> <span class="operator">/</span>f &quot;delims=&quot; <span class="operator">%</span><span class="operator">%</span>i <span class="keyword">in</span> (<span class="string">&#x27;dir /b /s &quot;%REPOSITORY_PATH%\*lastUpdated*&quot;&#x27;</span>) do (</span><br><span class="line">    del <span class="operator">/</span>s <span class="operator">/</span>q <span class="operator">%</span><span class="operator">%</span>i</span><br><span class="line">)</span><br><span class="line">rem 搜索完毕</span><br><span class="line">pause</span><br></pre></td></tr></table></figure>

<h4 id="6-扩展构建管理和插件配置"><a href="#6-扩展构建管理和插件配置" class="headerlink" title="6. 扩展构建管理和插件配置"></a>6. 扩展构建管理和插件配置</h4><p>项目构建是将源代码、依赖库和资源文件转为可执行或可部署的应用程序过程。</p>
<p><strong>命令方式構建</strong></p>
<p><strong><img src="https://gitee.com/htt-sub/pic-go/raw/master/images/image-20231023192322225.png" alt="image-20231023192322225"></strong></p>
<p><img src="https://gitee.com/htt-sub/pic-go/raw/master/images/image-20231023192419800.png" alt="image-20231023192419800"></p>
<p><strong>可視化方式构建</strong></p>
<p><img src="https://gitee.com/htt-sub/pic-go/raw/master/images/image-20231023192837289.png" alt="image-20231023192837289"></p>
<p>最佳使用方案</p>
<p><img src="https://gitee.com/htt-sub/pic-go/raw/master/images/image-20231023192940278.png" alt="image-20231023192940278"></p>
<figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">   导入插件</span><br><span class="line">   <span class="operator">&lt;</span>build<span class="operator">&gt;</span></span><br><span class="line">	<span class="operator">&lt;</span>plugins<span class="operator">&gt;</span></span><br><span class="line">		<span class="operator">&lt;</span>plugin<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">&lt;</span>groupId<span class="operator">&gt;</span>org.springframework.boot<span class="operator">&lt;</span><span class="operator">/</span>groupId<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">&lt;</span>artifactId<span class="operator">&gt;</span>spring<span class="operator">-</span>boot<span class="operator">-</span>maven<span class="operator">-</span>plugin<span class="operator">&lt;</span><span class="operator">/</span>artifactId<span class="operator">&gt;</span></span><br><span class="line">		<span class="operator">&lt;</span><span class="operator">/</span>plugin<span class="operator">&gt;</span></span><br><span class="line">	<span class="operator">&lt;</span><span class="operator">/</span>plugins<span class="operator">&gt;</span></span><br><span class="line"><span class="operator">&lt;</span><span class="operator">/</span>build<span class="operator">&gt;</span> </span><br></pre></td></tr></table></figure>

<h3 id="6-Maven继承和聚合特性"><a href="#6-Maven继承和聚合特性" class="headerlink" title="6. Maven继承和聚合特性"></a>6. Maven继承和聚合特性</h3><p><img src="https://gitee.com/htt-sub/pic-go/raw/master/images/image-20231023193615213.png" alt="image-20231023193615213"></p>
<p>把大的项目拆分为多个moudle，方便统一管理</p>
<h4 id="1-继承语法parent"><a href="#1-继承语法parent" class="headerlink" title="1. 继承语法parent"></a>1. 继承语法parent</h4><p><strong>父工程：</strong></p>
<figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line">   <span class="operator">&lt;</span>groupId<span class="operator">&gt;</span>com.atguigu.gulimall<span class="operator">&lt;</span><span class="operator">/</span>groupId<span class="operator">&gt;</span></span><br><span class="line">   <span class="operator">&lt;</span>artifactId<span class="operator">&gt;</span>gulimall<span class="operator">&lt;</span><span class="operator">/</span>artifactId<span class="operator">&gt;</span></span><br><span class="line">   <span class="operator">&lt;</span>version<span class="operator">&gt;</span><span class="number">0.0</span><span class="number">.1</span><span class="operator">-</span>SNAPSHOT<span class="operator">&lt;</span><span class="operator">/</span>version<span class="operator">&gt;</span></span><br><span class="line">   <span class="operator">&lt;</span>name<span class="operator">&gt;</span>gulimall<span class="operator">&lt;</span><span class="operator">/</span>name<span class="operator">&gt;</span></span><br><span class="line">   <span class="operator">&lt;</span>description<span class="operator">&gt;</span>聚合服务<span class="operator">&lt;</span><span class="operator">/</span>description<span class="operator">&gt;</span></span><br><span class="line">   <span class="operator">&lt;</span>packaging<span class="operator">&gt;</span>pom<span class="operator">&lt;</span><span class="operator">/</span>packaging<span class="operator">&gt;</span></span><br><span class="line">  </span><br><span class="line">   dependencyManagement声明依赖，不会下载依赖，可以被子工程继承版本号</span><br><span class="line">   子工程继承时不用写版本号</span><br><span class="line">   <span class="operator">&lt;</span>dependencyManagement<span class="operator">&gt;</span></span><br><span class="line">	<span class="operator">&lt;</span>dependencies<span class="operator">&gt;</span></span><br><span class="line">		<span class="operator">&lt;</span>dependency<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">&lt;</span>groupId<span class="operator">&gt;</span>com.alibaba.cloud<span class="operator">&lt;</span><span class="operator">/</span>groupId<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">&lt;</span>artifactId<span class="operator">&gt;</span>spring<span class="operator">-</span>cloud<span class="operator">-</span>alibaba<span class="operator">-</span>						 							dependencies<span class="operator">&lt;</span><span class="operator">/</span>artifactId<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">&lt;</span>version<span class="operator">&gt;</span><span class="number">2.1</span><span class="number">.0</span>.<span class="keyword">RELEASE</span><span class="operator">&lt;</span><span class="operator">/</span>version<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">&lt;</span>type<span class="operator">&gt;</span>pom<span class="operator">&lt;</span><span class="operator">/</span>type<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">&lt;</span><span class="keyword">scope</span><span class="operator">&gt;</span>import<span class="operator">&lt;</span><span class="operator">/</span><span class="keyword">scope</span><span class="operator">&gt;</span></span><br><span class="line">		<span class="operator">&lt;</span><span class="operator">/</span>dependency<span class="operator">&gt;</span></span><br><span class="line">	<span class="operator">&lt;</span><span class="operator">/</span>dependencies<span class="operator">&gt;</span></span><br><span class="line"><span class="operator">&lt;</span><span class="operator">/</span>dependencyManagement<span class="operator">&gt;</span></span><br></pre></td></tr></table></figure>

<p><strong>子工程：</strong></p>
<figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line">parent标签指定继承父工程的gav属性</span><br><span class="line"><span class="operator">&lt;</span>parent<span class="operator">&gt;</span></span><br><span class="line">	<span class="operator">&lt;</span>artifactId<span class="operator">&gt;</span>gulimall<span class="operator">&lt;</span><span class="operator">/</span>artifactId<span class="operator">&gt;</span></span><br><span class="line">	<span class="operator">&lt;</span>groupId<span class="operator">&gt;</span>com.atguigu.gulimall<span class="operator">&lt;</span><span class="operator">/</span>groupId<span class="operator">&gt;</span></span><br><span class="line">	<span class="operator">&lt;</span>version<span class="operator">&gt;</span><span class="number">0.0</span><span class="number">.1</span><span class="operator">-</span>SNAPSHOT<span class="operator">&lt;</span><span class="operator">/</span>version<span class="operator">&gt;</span></span><br><span class="line"><span class="operator">&lt;</span><span class="operator">/</span>parent<span class="operator">&gt;</span></span><br><span class="line"></span><br><span class="line">dependencies导入依赖</span><br><span class="line"><span class="operator">&lt;</span>dependencies<span class="operator">&gt;</span></span><br><span class="line">		<span class="operator">&lt;</span>dependency<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">&lt;</span>groupId<span class="operator">&gt;</span>com.alibaba.cloud<span class="operator">&lt;</span><span class="operator">/</span>groupId<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">&lt;</span>artifactId<span class="operator">&gt;</span>spring<span class="operator">-</span>cloud<span class="operator">-</span>alibaba<span class="operator">-</span>						 							dependencies<span class="operator">&lt;</span><span class="operator">/</span>artifactId<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">/</span><span class="operator">/</span> 子工程不写版本号</span><br><span class="line">			<span class="operator">&lt;</span>type<span class="operator">&gt;</span>pom<span class="operator">&lt;</span><span class="operator">/</span>type<span class="operator">&gt;</span></span><br><span class="line">			<span class="operator">&lt;</span><span class="keyword">scope</span><span class="operator">&gt;</span>import<span class="operator">&lt;</span><span class="operator">/</span><span class="keyword">scope</span><span class="operator">&gt;</span></span><br><span class="line">		<span class="operator">&lt;</span><span class="operator">/</span>dependency<span class="operator">&gt;</span></span><br><span class="line">	<span class="operator">&lt;</span><span class="operator">/</span>dependencies<span class="operator">&gt;</span></span><br></pre></td></tr></table></figure>

<h4 id="2-聚合功能modules"><a href="#2-聚合功能modules" class="headerlink" title="2. 聚合功能modules"></a>2. 聚合功能modules</h4><p>将多个模块组织在一起，对<strong>多个模块的构建顺序进行控制</strong>。</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">安装指定顺序管理子工程</span><br><span class="line">&lt;modules&gt;</span><br><span class="line">        &lt;<span class="keyword">module</span>&gt;gulimall-ware&lt;/<span class="keyword">module</span>&gt;</span><br><span class="line">        &lt;<span class="keyword">module</span>&gt;gulimall-order&lt;/<span class="keyword">module</span>&gt;</span><br><span class="line">        &lt;<span class="keyword">module</span>&gt;gulimall-member&lt;/<span class="keyword">module</span>&gt;</span><br><span class="line">        &lt;<span class="keyword">module</span>&gt;gulimall-coupon&lt;/<span class="keyword">module</span>&gt;</span><br><span class="line">        &lt;<span class="keyword">module</span>&gt;gulimall-product&lt;/<span class="keyword">module</span>&gt;</span><br><span class="line">        &lt;<span class="keyword">module</span>&gt;renren-fast-master&lt;/<span class="keyword">module</span>&gt;</span><br><span class="line">        &lt;<span class="keyword">module</span>&gt;renren-generator&lt;/<span class="keyword">module</span>&gt;</span><br><span class="line">        &lt;<span class="keyword">module</span>&gt;gulimall-common&lt;/<span class="keyword">module</span>&gt;</span><br><span class="line">        &lt;<span class="keyword">module</span>&gt;gulimall-search&lt;/<span class="keyword">module</span>&gt;</span><br><span class="line">        &lt;<span class="keyword">module</span>&gt;gulimall-third-part&lt;/<span class="keyword">module</span>&gt;</span><br><span class="line">    &lt;/modules&gt;</span><br></pre></td></tr></table></figure>

<h3 id="7-Maven实战配置"><a href="#7-Maven实战配置" class="headerlink" title="7. Maven实战配置"></a>7. Maven实战配置</h3><p><strong>父工程</strong></p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br></pre></td><td class="code"><pre><span class="line">&lt;groupId&gt;org.example&lt;/groupId&gt;</span><br><span class="line">    &lt;artifactId&gt;SSM&lt;/artifactId&gt;</span><br><span class="line">    &lt;version&gt;<span class="number">1.0</span>-SNAPSHOT&lt;/version&gt;</span><br><span class="line">    &lt;packaging&gt;pom&lt;/packaging&gt;</span><br><span class="line">    &lt;!--管理的子工程，可以指定构建顺序--&gt;</span><br><span class="line">    &lt;modules&gt;</span><br><span class="line">        &lt;<span class="keyword">module</span>&gt;user-service&lt;/<span class="keyword">module</span>&gt;</span><br><span class="line">        &lt;<span class="keyword">module</span>&gt;order-service&lt;/<span class="keyword">module</span>&gt;</span><br><span class="line">    &lt;/modules&gt;</span><br><span class="line"></span><br><span class="line">    &lt;!--版本统一管理--&gt;</span><br><span class="line">    &lt;properties&gt;</span><br><span class="line">        &lt;spring.version&gt;<span class="number">6.0</span><span class="number">.6</span>&lt;/spring.version&gt;</span><br><span class="line">        &lt;shiro.version&gt;<span class="number">1.10</span><span class="number">.1</span>&lt;/shiro.version&gt;</span><br><span class="line">        &lt;io.version&gt;<span class="number">2.11</span><span class="number">.0</span>&lt;/io.version&gt;</span><br><span class="line">    &lt;/properties&gt;</span><br><span class="line"></span><br><span class="line">    &lt;!--声明依赖，但不下载，子工程用到下载，可以不指定版本号--&gt;</span><br><span class="line">    &lt;dependencyManagement&gt;</span><br><span class="line">        &lt;dependencies&gt;</span><br><span class="line">            &lt;dependency&gt;</span><br><span class="line">                &lt;groupId&gt;org.springframework&lt;/groupId&gt;</span><br><span class="line">                &lt;artifactId&gt;spring-context&lt;/artifactId&gt;</span><br><span class="line">                &lt;version&gt;$&#123;spring.version&#125;&lt;/version&gt;</span><br><span class="line">            &lt;/dependency&gt;</span><br><span class="line">            &lt;dependency&gt;</span><br><span class="line">                &lt;groupId&gt;org.apache.shiro&lt;/groupId&gt;</span><br><span class="line">                &lt;artifactId&gt;shiro-core&lt;/artifactId&gt;</span><br><span class="line">                &lt;version&gt;$&#123;shiro.version&#125;&lt;/version&gt;</span><br><span class="line">            &lt;/dependency&gt;</span><br><span class="line">            &lt;dependency&gt;</span><br><span class="line">                &lt;groupId&gt;commons-io&lt;/groupId&gt;</span><br><span class="line">                &lt;artifactId&gt;commons-io&lt;/artifactId&gt;</span><br><span class="line">                &lt;version&gt;$&#123;io.version&#125;&lt;/version&gt;</span><br><span class="line">            &lt;/dependency&gt;</span><br><span class="line">        &lt;/dependencies&gt;</span><br><span class="line">    &lt;/dependencyManagement&gt;</span><br></pre></td></tr></table></figure>

<p><strong>子工程</strong></p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br></pre></td><td class="code"><pre><span class="line">parent指定父工程</span><br><span class="line"> &lt;parent&gt;</span><br><span class="line">    &lt;groupId&gt;org.example&lt;/groupId&gt;</span><br><span class="line">    &lt;artifactId&gt;SSM&lt;/artifactId&gt;</span><br><span class="line">    &lt;version&gt;<span class="number">1.0</span>-SNAPSHOT&lt;/version&gt;</span><br><span class="line">&lt;/parent&gt;</span><br><span class="line"></span><br><span class="line">&lt;artifactId&gt;order-service&lt;/artifactId&gt;</span><br><span class="line"></span><br><span class="line">&lt;properties&gt;</span><br><span class="line">    &lt;maven.compiler.source&gt;<span class="number">8</span>&lt;/maven.compiler.source&gt;</span><br><span class="line">    &lt;maven.compiler.target&gt;<span class="number">8</span>&lt;/maven.compiler.target&gt;</span><br><span class="line">    &lt;project.build.sourceEncoding&gt;UTF8&lt;/project.build.sourceEncoding&gt;</span><br><span class="line">&lt;/properties&gt; </span><br><span class="line">    </span><br><span class="line">&lt;dependencies&gt;</span><br><span class="line">    &lt;!--引用另一个子模块--&gt;</span><br><span class="line">    &lt;dependency&gt;</span><br><span class="line">        &lt;groupId&gt;org.example&lt;/groupId&gt;</span><br><span class="line">        &lt;artifactId&gt;user-service&lt;/artifactId&gt;</span><br><span class="line">        &lt;version&gt;<span class="number">1.0</span>-SNAPSHOT&lt;/version&gt;</span><br><span class="line">    &lt;/dependency&gt;</span><br><span class="line">    </span><br><span class="line">    &lt;dependency&gt;</span><br><span class="line">        &lt;groupId&gt;org.springframework&lt;/groupId&gt;</span><br><span class="line">        &lt;artifactId&gt;spring-context&lt;/artifactId&gt;</span><br><span class="line">    &lt;/dependency&gt;</span><br><span class="line">&lt;/dependencies&gt;</span><br></pre></td></tr></table></figure>

<p><strong>子工程之间互相引用</strong></p>
<figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="operator">&lt;</span><span class="operator">!</span><span class="comment">--引用另一个子模块--&gt;</span></span><br><span class="line">        <span class="operator">&lt;</span>dependency<span class="operator">&gt;</span></span><br><span class="line">            <span class="operator">&lt;</span>groupId<span class="operator">&gt;</span>org.example<span class="operator">&lt;</span><span class="operator">/</span>groupId<span class="operator">&gt;</span></span><br><span class="line">            <span class="operator">&lt;</span>artifactId<span class="operator">&gt;</span><span class="keyword">user</span><span class="operator">-</span>service<span class="operator">&lt;</span><span class="operator">/</span>artifactId<span class="operator">&gt;</span></span><br><span class="line">            <span class="operator">&lt;</span>version<span class="operator">&gt;</span><span class="number">1.0</span><span class="operator">-</span>SNAPSHOT<span class="operator">&lt;</span><span class="operator">/</span>version<span class="operator">&gt;</span></span><br><span class="line">        <span class="operator">&lt;</span><span class="operator">/</span>dependency<span class="operator">&gt;</span></span><br></pre></td></tr></table></figure>
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2023/10/24/MybatisPlus/" rel="next" title="Mybatis-Plus">
                <i class="fa fa-chevron-left"></i> Mybatis-Plus
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2023/10/24/Spring/" rel="prev" title="Spring">
                Spring <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="/images/avatar.png"
                alt="" />
            
              <p class="site-author-name" itemprop="name"></p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives">
              
                  <span class="site-state-item-count">10</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">6</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/tags/index.html">
                  <span class="site-state-item-count">8</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#Maven%E5%B7%A5%E5%85%B7"><span class="nav-number">1.</span> <span class="nav-text">Maven工具</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%B8%80%E3%80%81Maven"><span class="nav-number">1.1.</span> <span class="nav-text">一、Maven</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#1-version%E5%8F%B7"><span class="nav-number">1.1.1.</span> <span class="nav-text">1. version号</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2-packing%E5%AE%9A%E4%B9%89%E8%A7%84%E5%88%99"><span class="nav-number">1.1.2.</span> <span class="nav-text">2. packing定义规则</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3-%E6%9E%84%E5%BB%BAJavaWeb%E9%A1%B9%E7%9B%AE"><span class="nav-number">1.1.3.</span> <span class="nav-text">3. 构建JavaWeb项目</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#4-Maven%E9%A1%B9%E7%9B%AE%E7%BB%93%E6%9E%84%E8%AF%B4%E6%98%8E"><span class="nav-number">1.1.4.</span> <span class="nav-text">4. Maven项目结构说明</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#5-Maven%E6%A0%B8%E5%BF%83%E5%8A%9F%E8%83%BD%E4%BE%9D%E8%B5%96%E5%92%8C%E7%AE%A1%E7%90%86%E6%9E%84%E5%BB%BApom-xml"><span class="nav-number">1.1.5.</span> <span class="nav-text">5. Maven核心功能依赖和管理构建pom.xml</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#1-%E5%BF%AB%E9%80%9F%E6%9F%A5%E8%AF%A2jar%E7%9A%84%E6%8F%92%E4%BB%B6"><span class="nav-number">1.1.5.1.</span> <span class="nav-text">1. 快速查询jar的插件</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#2-%E7%89%88%E6%9C%AC%E5%8F%B7%E7%BB%9F%E4%B8%80%E7%AE%A1%E7%90%86"><span class="nav-number">1.1.5.2.</span> <span class="nav-text">2. 版本号统一管理</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#3-%E5%8F%AF%E9%80%89%E5%B1%9E%E6%80%A7scope"><span class="nav-number">1.1.5.3.</span> <span class="nav-text">3. 可选属性scope</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#4-%E4%BE%9D%E8%B5%96%E5%86%B2%E7%AA%81%E5%92%8C%E4%BE%9D%E8%B5%96%E4%BC%A0%E9%80%92"><span class="nav-number">1.1.5.4.</span> <span class="nav-text">4. 依赖冲突和依赖传递</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#5-%E4%BE%9D%E8%B5%96%E5%AF%BC%E5%85%A5%E5%A4%B1%E8%B4%A5%E5%9C%BA%E6%99%AF"><span class="nav-number">1.1.5.5.</span> <span class="nav-text">5. 依赖导入失败场景</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#6-%E6%89%A9%E5%B1%95%E6%9E%84%E5%BB%BA%E7%AE%A1%E7%90%86%E5%92%8C%E6%8F%92%E4%BB%B6%E9%85%8D%E7%BD%AE"><span class="nav-number">1.1.5.6.</span> <span class="nav-text">6. 扩展构建管理和插件配置</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#6-Maven%E7%BB%A7%E6%89%BF%E5%92%8C%E8%81%9A%E5%90%88%E7%89%B9%E6%80%A7"><span class="nav-number">1.1.6.</span> <span class="nav-text">6. Maven继承和聚合特性</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#1-%E7%BB%A7%E6%89%BF%E8%AF%AD%E6%B3%95parent"><span class="nav-number">1.1.6.1.</span> <span class="nav-text">1. 继承语法parent</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#2-%E8%81%9A%E5%90%88%E5%8A%9F%E8%83%BDmodules"><span class="nav-number">1.1.6.2.</span> <span class="nav-text">2. 聚合功能modules</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#7-Maven%E5%AE%9E%E6%88%98%E9%85%8D%E7%BD%AE"><span class="nav-number">1.1.7.</span> <span class="nav-text">7. Maven实战配置</span></a></li></ol></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2023</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">黄宏涛</span>

  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Gemini</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  


  











  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  

  
  
    <script type="text/javascript" src="/lib/canvas-nest/canvas-nest.min.js"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
